package com.qf.business.cart.controller;


import com.qf.business.cart.service.GoodsService;
import com.qf.entity.base.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商品表(Goods)表控制层
 *
 * @author makejava
 * @since 2024-02-22 14:12:01
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Autowired
    private GoodsService goodsService;

    /**
     * 查询商品列表接口
     * @return
     */
    @GetMapping("/list")
    public R list(){
        return R.succ(goodsService.list());
    }
}

